package org.jeecg.modules.geo.core.constant;

import lombok.Getter;

@Getter
public enum BimGeoEventOperateType {
    EMBED(1, "embed"),
    LINK(2, "link"),
    CALLBACK(3, "callback"),
    ROUTE(5, "route");

    Integer value;
    String sign;

    BimGeoEventOperateType(Integer value, String sign) {
        this.value = value;
        this.sign = sign;
    }

    public static String signOf(Integer value) {
        if (value == null) {
            return null;
        } else {
            for (BimGeoEventOperateType bimGeoEventOperateType : BimGeoEventOperateType.values()) {
                if (bimGeoEventOperateType.getValue().equals(value)) {
                    return bimGeoEventOperateType.getSign();
                }
            }
            return null;
        }
    }
}
